package QL;

import java.util.Map;

public class ButlerBroadcastMessageAddRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 跑马灯消息内容
    /// </summary>
    public String Content;

    /// <summary>
    /// 轮播时间间隔，单位秒
    /// </summary>
    public long Interval;

    /// <summary>
    /// 轮播总时长，单位秒。0代表永久
    /// </summary>
    public long Duration;

    /// <summary>
    /// 操作人
    /// </summary>
    public String Operater;

    @Override
    public String GetApiName()
    {
        return "butler.broadcast.message.add";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("content", Content);
        map.put("interval", String.valueOf(Interval));
        map.put("duration", String.valueOf(Duration));
        map.put("operater", Operater);
    }
}
